package core.vols;

import time.Heure;
import map.Airport;

public abstract class Vol {
	
	protected Airport depart;
	protected Airport arrivee;
	protected Heure heureDepart;
	protected Heure duree;
	protected VolFret volFret;
	protected VolCommercial volCommercial;
	protected Boolean isFret;
	protected Boolean isCommercial;
	/**
	 * @param depart
	 * @param arrivee
	 * @param heureDepart
	 * @param duree
	 * @param volFret
	 * @param volCommercial
	 */
	public Vol(Airport depart, Airport arrivee, Heure heureDepart, Heure duree, VolFret volFret, VolCommercial volCommercial) {
		super();
		this.depart = depart;
		this.arrivee = arrivee;
		this.heureDepart = heureDepart;
		this.duree = duree;
		this.volFret = volFret;
		this.volCommercial = volCommercial;
		this.isCommercial=true;
		this.isFret=true;
	}
	
	/**
	 * @param depart
	 * @param arrivee
	 * @param heureDepart
	 * @param duree
	 * @param volFret
	 */
	public Vol(Airport depart, Airport arrivee, Heure heureDepart, Heure duree, VolFret volFret) {
		super();
		this.depart = depart;
		this.arrivee = arrivee;
		this.heureDepart = heureDepart;
		this.duree = duree;
		this.volFret = volFret;
		this.isCommercial=false;
		this.isFret=true;
	}
	
	/**
	 * @param depart
	 * @param arrivee
	 * @param heureDepart
	 * @param duree
	 * @param volCommercial
	 */
	public Vol(Airport depart, Airport arrivee, Heure heureDepart, Heure duree, VolCommercial volCommercial) {
		super();
		this.depart = depart;
		this.arrivee = arrivee;
		this.heureDepart = heureDepart;
		this.duree = duree;
		this.volCommercial = volCommercial;
		this.isCommercial=true;
		this.isFret=false;
	}
	
	
	
	

}
